package com.lyf.shop.dao;

import com.lyf.shop.entity.Cart;

import java.sql.SQLException;
import java.util.List;

public interface CartDao {
    //查找单个
    Cart findCart(int uid,int pid)  throws SQLException;
    //新增
    int addCart(Cart cart) throws SQLException;
    //修改
    int updateCart(Cart cart) throws SQLException;
    //查找多个
    List<Cart> findCart(int uid) throws SQLException;
    //清空购物车
    int delCart(int uid) throws SQLException;
    //删除单条
    int delCart(int uid,int pid) throws SQLException;
}
